package com.yeyks.order.dal.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import java.util.Date;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 用户发布订单记录表
 * </p>
 *
 * @author yun
 * @since 2019-12-26
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value="OrderPubRecord对象", description="用户发布订单记录表")
public class OrderPubRecord implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @TableField("gmt_create")
    private Date gmtCreate;

    @TableField("gmt_modified")
    private Date gmtModified;

    @ApiModelProperty(value = "用户发布时间")
    @TableField("timestamp")
    private Long timestamp;

    @ApiModelProperty(value = "对应的操作用户ID")
    @TableField("user_id")
    private Integer userId;

    @ApiModelProperty(value = "对应的操作用户手机号")
    @TableField("phone")
    private String phone;

    @ApiModelProperty(value = "用户出价")
    @TableField("price")
    private Integer price;

    @ApiModelProperty(value = "入住时间")
    @TableField("startDate")
    private Date startDate;

    @ApiModelProperty(value = " 离店时间")
    @TableField("endDate")
    private Date endDate;

    @ApiModelProperty(value = "状态：0 未抢单 1：已抢单")
    @TableField("status")
    private Integer status;

    @ApiModelProperty(value = "经度")
    @TableField("position_x")
    private Double positionX;

    @ApiModelProperty(value = "纬度")
    @TableField("position_y")
    private Double positionY;

    @ApiModelProperty(value = "城市名称")
    @TableField("city")
    private String city;

    @ApiModelProperty(value = "舒适度 1舒适 2高档 3豪华 4民宿专区")
    @TableField("comfortLevel")
    private String comfortLevel;

    @ApiModelProperty(value = "来源:JS,iOS,Android")
    @TableField("source")
    private String source;


    public static final String ID = "id";

    public static final String GMT_CREATE = "gmt_create";

    public static final String GMT_MODIFIED = "gmt_modified";

    public static final String TIMESTAMP = "timestamp";

    public static final String USER_ID = "user_id";

    public static final String PHONE = "phone";

    public static final String PRICE = "price";

    public static final String STARTDATE = "startDate";

    public static final String ENDDATE = "endDate";

    public static final String STATUS = "status";

    public static final String POSITION_X = "position_x";

    public static final String POSITION_Y = "position_y";

    public static final String CITY = "city";

    public static final String COMFORTLEVEL = "comfortLevel";

    public static final String SOURCE = "source";

}
